Decompress(Byte[],Int32,Int32,Boolean,Byte[],Int32) Method
Decompresses an array of bytes.
'Declaration
Public Overloads Overrides Function Decompress( _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer, _
ByRef As Boolean, _
ByRef () As Byte, _
ByRef remaining As Integer _
) As Integer
'Usage
Dim instance As ManagedPPMdDecompressor
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim endOfData As Boolean
Dim decompressed() As Byte
Dim remaining As Integer
Dim value As Integer
value = instance.Decompress(buffer, offset, count, endOfData, decompressed, remaining)
public override int Decompress(
byte[] ,
int ,
int ,
ref bool ,
out byte[] ,
out int remaining
)
Parameters
- buffer
- An array of bytes to decompress. A maximum of count bytes are taken from this array and decompressed.
- offset
- The byte offset in buffer at which to begin taking the data to decompress.
- count
- The maximum number of bytes to be taken from buffer.
- endOfData
- true if the end of the compressed data has been reached; false otherwise.
- decompressed
- An array of bytes containing the decompressed data. Can be empty if no bytes were decompressed.
- remaining
- The number of unused bytes read from buffer the for decompression.
Return Value
A value representing the length of the decompressed stream.
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Standard: netstandard2.0, netstandard2.1
.NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.